package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班次信息业务对象 shift
 *
 * @author ruoyi
 * @date 2025-06-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ShiftBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属单位
     */
    @NotBlank(message = "所属单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     *  所属岗位
     */
    private Long  postId;

    /**
     * 岗位种类
     */
    @NotBlank(message = "岗位种类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String postType;

    /**
     * 岗位类型
     */
    @NotBlank(message = "岗位类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String postCategory;

    /**
     * 班次名称
     */
    @NotBlank(message = "班次名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shiftName;

    /**
     * 班次时段
     */
    @NotBlank(message = "班次时段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shiftTimePeriod;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnabled;


}
